<?php
	error_reporting(E_ALL ^ E_NOTICE);
	$id = $_GET['id'];
	$news = selectone('news',"Id='$id'");
	$newscate = selectAll('newscate');
	$banner = selectone('banner',"name='news_banner'");
	
	$limit = "limit 0,1";
	//selectLimit($table,$field='*',$where=1,$limit='')
	$nav = selectAll('newscate','pid=20');
	$cate = empty($_GET['cate'])?21:$_GET['cate'];
	$newspage = selectLimit('news','*','Id<'.$id,'order by Id desc',$limit)[0];
	$limits = "limit 0,1";
	$newspages = selectLimit('news','*','Id>'.$id,'order by Id ',$limits)[0];
	$i=!empty($newspages);
	$j=!empty($newspage);

include('app/index/news_detail/html/news_detail.html');
?>